{extend name="shop/b2c/Member/base" /}
{block name="resources"}
<style type="text/css">
td{padding:10px;border: 1px Black; width:46px;}
table{background-color:#eeeeee;border:0;width:100%;}
.integral_title{display:block;font-size:18px;text-align:center;padding:20px;}
.user-right .tabmenu .tab li {border-bottom: 2px #ff6600 solid;} 
</style>
{/block}
{block name="main"}
    <div class="user-right" >
    	<div class="box" id="firstpage">
<!--            <span class="integral_title" style="display:inline-block;"><b>{$shopname}积分操作明细(可用积分:<span id="sum">{$sum}</span>)</b></span> -->
           	<div class="interal_table" style="height:40px;">
                <span style="display:inline-block; float:left;font-size:16px;margin:10px;">
                {if condition="!isset($shopname)"}
                 	{$platform_shopname}
                {else /}
                	{$shopname}
                {/if}<span style="color:#989191;">(余额:<span id="sum">{$sum})</span></span>
                </span>
             
            </div> 
 {if condition="$total_count neq ''"}           
		<table>
            <tr align="center">
              <td>类别</td>              
              <td>数量</td>
              <td>描述</td>
              <td>时间</td>
            </tr>
            <tbody id="list_content" class="close-order">
			   {foreach $balances.data as $balance}
				<tr align="center">
				{switch name="$balance.from_type"}
				{case value="1"}	
					<td>商城订单</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="2"}	
					<td>订单退还</td>				
					<td style="color:green;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="3"}	
					<td>兑换</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="4"}	
					<td>充值</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="5"}	
					<td>签到</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="6"}	
					<td>分享</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="7"}	
					<td>注册</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="8"}	
					<td>推广下级会员注册</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="9"}	
					<td>下下级会员注册</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="10"}	
					<td>下下下级会员注册</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="11"}	
					<td>成为推广员</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="12"}	
					<td>推广下级推广员</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="13"}	
					<td>下下级推广员</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="14"}	
					<td>下下下级推广员</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="15"}	
					<td>成为股东</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="16"}	
					<td>推广下级股东</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="17"}	
					<td>下下级股东</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{case value="18"}	
					<td>下下下级股东</td>				
					<td style="color:red;font-size:14px;">{if $balance.sign==0}-{else}+{/if}{$balance.number}</td>
				{/case}
				{default/}
					<td>积分失踪</td>				
					<td style="color:red;font-size:14px;">+{$balance.number}</td>
				{/switch}
					<td>{$balance.text}</td>
					<td>{$balance.create_time}</td>
				</tr>
			{/foreach}
            </tbody>
          
          </table>
    {else/}
          <div>
              <div class="emptyFrame"> <i class="user_balance"></i><span>您暂时还没有余额哦！</span> </div>
          </div>
   {/if}         
            {include file='shop/b2c/controlCommonPage'/}
        </div> 

</div>

{/block}